home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PShortCommand.h < prev    next >
C/C++ Source or Header  |  1996-10-01  |  2KB  |  48 lines

  1. /*
  2.  *--- PShortCommand.h ------------------------------------------
  3.  * Copyright (c) 1995 Adobe Systems, Inc.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 10:53 PM by Paul Ferguson.
  5.  *
  6.  * Description:
  7.  *--------------------------------------------------------------
  8.  */
  9. #ifndef __PShortCommand__
  10. #define __PShortCommand__
  11.  
  12. #include "PCommand.h"
  13. #include "PKeywords.h"
  14.  
  15. template <ePMCommand COMMAND>
  16. class PShortCommand
  17. {
  18.     public:  PShortCommand(short theShort) { PCommand command(COMMAND, theShort); }
  19.     private: PShortCommand();
  20. };
  21.  
  22. // typedef PShortCommand<pm_closestory>        PCloseStory;
  23. typedef PShortCommand<pm_kerntext>            PKernText;
  24. typedef PShortCommand<pm_leading>            PLeading;
  25. typedef PShortCommand<pm_locklayers>        PLockLayers;
  26. typedef PShortCommand<pm_new>                PNew;
  27. typedef PShortCommand<pm_placenext>            PPlaceNext;
  28. typedef PShortCommand<pm_polygontype>        PPolygonType;
  29. typedef PShortCommand<pm_polygonmiterlimit>    PPolygonMiterLimit;
  30. typedef PShortCommand<pm_position>            PPosition;
  31. typedef PShortCommand<pm_printerresol>        PPrinterResol;
  32. typedef PShortCommand<pm_roundedcorners>    PRoundedCorners;
  33. typedef PShortCommand<pm_setwidth>            PSetWidth;
  34. typedef PShortCommand<pm_showlayers>        PShowLayers;
  35. typedef PShortCommand<pm_size>                PSize;
  36. typedef PShortCommand<pm_tintselection>        PTintSelection;
  37. typedef PShortCommand<pm_typestyle>            PTypeStyle;
  38.  
  39. class PCloseStory
  40. {
  41.     public:  PCloseStory(eCloseStory e) { PCommand command(pm_closestory, (short) e); }
  42.     private: PCloseStory();
  43. };
  44.  
  45. #endif
  46.  
  47. // end of PShortCommand.h
  48.